fixing incorrect datatype
Oleg
committed Dec 20, 2011
commit 4536cc583d62156b70c3819c0cbf75ae422d091a
Showing 1
changed file with
3 additions
and 3 deletions
migrate/01_create_cms.rb b/db/migrate/01_create_cms.rb
+3
-3
| @@ | @@ -99,9 +99,9 @@ class CreateCms < ActiveRecord::Migration |
| # -- Categories --------------------------------------------------------- | |
| create_table :cms_categories, :force => true do |t| | |
| - | t.string :site_id, :null => false |
| - | t.string :label, :null => false |
| - | t.string :categorized_type, :null => false |
| + | t.integer :site_id, :null => false |
| + | t.string :label, :null => false |
| + | t.string :categorized_type, :null => false |
| end | |
| add_index :cms_categories, [:site_id, :categorized_type, :label], :unique => true | |