updated and moved ignore file
[selectricity] / db / migrate / 002_add_embeddable_support.rb
1 class AddEmbeddableSupport < ActiveRecord::Migration
2   def self.up
3     add_column :elections, :embeddable, :boolean,
4                :null => false, :default => false
5     add_column :elections, :authenticated, :boolean,
6                :null => false, :default => true
7     add_column :elections, :early_results, :boolean,
8                :null => false, :default => false
9   end
10
11   def self.down
12     remove_column :elections, :embeddable
13     remove_column :elections, :authenticated
14     remove_column :elections, :early_results
15   end
16 end

Benjamin Mako Hill || Want to submit a patch?