1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20150429091737_create_machines.rb

14 lines
264 B
Ruby
Raw Normal View History

2015-05-05 03:10:25 +02:00
class CreateMachines < ActiveRecord::Migration
def change
create_table :machines do |t|
t.string :name
t.text :description
t.text :spec
t.string :slug
t.timestamps
end
add_index :machines, :slug, unique: true
end
end