mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-22 16:54:15 +01:00
17 lines
344 B
Ruby
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
|