Displaying 1 result from an estimated 1 matches for "createpoststable".
2008 Mar 29
0
message board help
...ists: CREATE TABLE posts
("id" INTE
GER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text DEFAULT NULL,
"created_at" d
atetime NOT NULL, "name" varchar(100) DEFAULT NULL, "discussion_id"
integer NOT
NULL)
when I try to migrate this bit of code
class CreatePostsTable < ActiveRecord::Migration
def self.up
create_table :posts do |table|
table.column :body, :text
table.column :created_at, :datetime, :null => false
table.column :name, :string, :limit=>100
table.column :discussion_id, :integer, :null => false
end
execute "AL...