NOT NULL for comment columns

openid
Marcin Kulik 12 years ago
parent c4f40322ed
commit edb4bb3b97

@ -1,9 +1,9 @@
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.text :body
t.integer :user_id
t.integer :asciicast_id
t.text :body, :null => false
t.integer :user_id, :null => false
t.integer :asciicast_id, :null => false
t.timestamps
end

Loading…
Cancel
Save