react-code-dataset / facenovel /db /migrate /20180922220854_create_posts.rb
Devendra174's picture
Upload folder using huggingface_hub
f5071ca verified
raw
history blame contribute delete
236 Bytes
class CreatePosts < ActiveRecord::Migration[5.1]
def change
create_table :posts do |t|
t.integer :author_id, null: false
t.text :body, null: false
t.timestamps
end
add_index :posts, :author_id
end
end