mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-11 05:54:15 +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
|