negos_app/db/migrate/20150730175359_create_newsgroups.rb
Nicolas Bally 772e87ffb7 initial
2015-11-14 00:08:54 +01:00

17 lines
382 B
Ruby

class CreateNewsgroups < ActiveRecord::Migration
def change
create_table :newsgroups do |t|
t.string :name
t.string :slug
t.boolean :default_checked
t.boolean :enabled
t.timestamps null: false
end
Newsgroup.create :name => "Informations concernant des partenaires", :enabled => true, :default_checked => false
end
end