Files
grecia/db/migrate/20190312100543_create_download_settings.rb
2019-06-12 10:17:31 +02:00

14 lines
376 B
Ruby

class CreateDownloadSettings < ActiveRecord::Migration
def change
create_table :download_settings do |t|
t.string :name_model, null: false
t.string :name_field, null: false
t.boolean :downloadable, null: false, default: false
t.timestamps null: false
end
add_index :download_settings, [:name_model, :name_field], unique: true
end
end