mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
14 lines
264 B
Ruby
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
|