class CreateMailinglists < ActiveRecord::Migration def self.up create_table :mailinglists do |t| t.column :user_id, :integer t.column :name, :text, :null => false t.column :open, :boolean end end def self.down drop_table :mailinglists end end