sideplace_app/db/migrate/20150730175359_create_newsgroups.rb

23 lines
1.1 KiB
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 importantes (changements des conditions générales, tarifs)", :enabled => true, :default_checked => true
Newsgroup.create :name => "Informations concernant le site Sideplace.com (nouvelles fonctionnalités, etc.)", :enabled => true, :default_checked => true
Newsgroup.create :name => "Informations concernant les offres promotionnelles (réductions sur le site, campagnes spécifiques, etc.)", :enabled => true, :default_checked => true
Newsgroup.create :name => "Informations concernant la société", :enabled => true, :default_checked => true
Newsgroup.create :name => "Informations concernant le programme d'affiliation", :enabled => true, :default_checked => true
Newsgroup.create :name => "Informations concernant des partenaires", :enabled => true, :default_checked => false
end
end