mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
11 lines
209 B
Ruby
11 lines
209 B
Ruby
|
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
|