Fixed mysql text/blob issue.
This commit is contained in:
parent
cf8a032c77
commit
6baa11b54a
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ class CreateBase < ActiveRecord::Migration
|
||||||
|
|
||||||
create_table :roles do |t|
|
create_table :roles do |t|
|
||||||
t.string :name, limit: 100, null: false
|
t.string :name, limit: 100, null: false
|
||||||
t.string :preferences, limit: 500.kilobytes + 1, null: true
|
t.text :preferences, limit: 500.kilobytes + 1, null: true
|
||||||
t.boolean :default_at_signup, null: true, default: false
|
t.boolean :default_at_signup, null: true, default: false
|
||||||
t.boolean :active, null: false, default: true
|
t.boolean :active, null: false, default: true
|
||||||
t.string :note, limit: 250, null: true
|
t.string :note, limit: 250, null: true
|
||||||
|
@ -204,7 +204,7 @@ class CreateBase < ActiveRecord::Migration
|
||||||
t.string :name, limit: 100, null: false
|
t.string :name, limit: 100, null: false
|
||||||
t.string :action, limit: 40, null: false
|
t.string :action, limit: 40, null: false
|
||||||
t.string :label, limit: 255, null: true
|
t.string :label, limit: 255, null: true
|
||||||
t.string :preferences, limit: 500.kilobytes + 1, null: true
|
t.text :preferences, limit: 500.kilobytes + 1, null: true
|
||||||
t.timestamps null: false
|
t.timestamps null: false
|
||||||
end
|
end
|
||||||
add_index :tokens, :user_id
|
add_index :tokens, :user_id
|
||||||
|
|
Loading…
Reference in a new issue