1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/db/migrate/20150428091057_create_settings.rb

15 lines
279 B
Ruby
Raw Normal View History

# frozen_string_literal:true
class CreateSettings < ActiveRecord::Migration[4.2]
2016-03-23 18:39:41 +01:00
def change
create_table :settings do |t|
t.string :name, null: false
t.text :value
t.timestamps null: false
end
add_index :settings, :name, unique: true
end
end