canvas-lms/db/migrate/20140312232054_create_custo...

17 lines
305 B
Ruby

class CreateCustomData < ActiveRecord::Migration[4.2]
tag :predeploy
def self.up
create_table :custom_data do |t|
t.text :data
t.string :namespace
t.references :user, :limit => 8
t.timestamps null: true
end
end
def self.down
drop_table :custom_data
end
end