Prepared for rails 4.

This commit is contained in:
Martin Edenhofer 2013-05-29 17:09:08 +02:00
parent dfec4e5bd5
commit 18defadb71

View file

@ -51,7 +51,7 @@ class CreateNetwork < ActiveRecord::Migration
create_table :network_items do |t| create_table :network_items do |t|
t.references :network_category, :null => false t.references :network_category, :null => false
t.column :title, :string, :limit => 200, :null => false t.column :title, :string, :limit => 200, :null => false
t.column :body, :string, :limit => 25000, :null => false t.column :body, :string, :limit => 20000, :null => false
t.column :updated_by_id, :integer, :null => false t.column :updated_by_id, :integer, :null => false
t.column :created_by_id, :integer, :null => false t.column :created_by_id, :integer, :null => false
t.timestamps t.timestamps
@ -60,7 +60,7 @@ class CreateNetwork < ActiveRecord::Migration
create_table :network_item_comments do |t| create_table :network_item_comments do |t|
t.references :network_item, :null => false t.references :network_item, :null => false
t.column :body, :string, :limit => 25000, :null => false t.column :body, :string, :limit => 20000, :null => false
t.column :updated_by_id, :integer, :null => false t.column :updated_by_id, :integer, :null => false
t.column :created_by_id, :integer, :null => false t.column :created_by_id, :integer, :null => false
t.timestamps t.timestamps