mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
10 lines
214 B
Ruby
10 lines
214 B
Ruby
class CreateAssets < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :assets do |t|
|
|
|
|
t.timestamps null: false
|
|
end
|
|
add_attachment :assets, :file
|
|
add_index :assets, :created_at
|
|
end
|
|
end
|