gitlab-org--gitlab-foss/db/migrate/20111016183422_create_snipp...

13 lines
263 B
Ruby
Raw Normal View History

2011-10-16 21:07:10 +00:00
class CreateSnippets < ActiveRecord::Migration
def change
create_table :snippets do |t|
t.string :title
t.text :content
t.integer :author_id, :null => false
t.integer :project_id, :null => false
t.timestamps
end
end
end