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

17 lines
344 B
Ruby

class CreateProjects < ActiveRecord::Migration
def change
create_table :projects do |t|
t.string :name
t.text :description
t.string :slug
t.datetime :published_at
t.integer :author_id
t.text :tags
t.string :state
t.timestamps
end
add_index :projects, :slug, unique: true
end
end