mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 12:47:11 +08:00
11 lines
233 B
Ruby
11 lines
233 B
Ruby
|
class CreateTables < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :tables do |t|
|
||
|
t.binary :contents, null: false, limit: 20.megabyte
|
||
|
|
||
|
t.timestamps null: false
|
||
|
end
|
||
|
add_index :tables, :created_at
|
||
|
end
|
||
|
end
|