Comments (1)
I also ran into this. Here's my workaround:
--- acts_as_versioned.rb.bu 2011-06-18 22:19:17.965242002 -0400
+++ acts_as_versioned.rb 2011-06-18 22:18:36.061242003 -0400
@@ -425,8 +425,13 @@
end
self.versioned_columns.each do |col|
+ limit = col.limit
+ if col.limit == 10 and col.type == :integer
+ # Avoid 'No integer type has byte size 10' under MySQL
+ limit = 8
+ end
self.connection.add_column versioned_table_name, col.name, col.type,
- :limit => col.limit,
+ :limit => limit,
:default => col.default,
:scale => col.scale,
:precision => col.precision
from acts_as_versioned.
Related Issues (13)
- Missing columns in _versions table cause error HOT 1
- First save ignores :if condition HOT 3
- ActiveRecord dependency overspecified to "~> 3.0.0.beta4" HOT 1
- Getting the active version
- Something wonky about the cloned extension HOT 1
- Getting the active version
- Beautify the readme file
- missing gem HOT 2
- uninitialized constant ActiveRecord::Acts::Versioned::ClassMethods::Inflector HOT 5
- undefined method `table_exists?' for # HOT 2
- Support for Rails 3.0.1 HOT 1
- MySQL/PosgreSQL: Index name on table is too long; the limit is 63 characters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acts_as_versioned.