1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-11 05:54:15 +01:00
fab-manager/db/migrate/20150429091737_create_machines.rb
2015-05-05 03:10:25 +02:00

14 lines
264 B
Ruby

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