scinote-web/db/migrate/20150715141810_create_assets.rb

11 lines
209 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class CreateAssets < ActiveRecord::Migration
def change
create_table :assets do |t|
t.timestamps null: false
end
add_attachment :assets, :file
add_index :assets, :created_at
end
end