mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
10 lines
233 B
Ruby
10 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
|