X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/b47d1fbe36d5aeb9b79d6bbaab035ca448a3c3ef..adfcf4dd7d989d0560e2a8f6a590dd10c5a49a08:/db/migrate/002_add_embeddable_support.rb diff --git a/db/migrate/002_add_embeddable_support.rb b/db/migrate/002_add_embeddable_support.rb new file mode 100644 index 0000000..48fa00d --- /dev/null +++ b/db/migrate/002_add_embeddable_support.rb @@ -0,0 +1,16 @@ +class AddEmbeddableSupport < ActiveRecord::Migration + def self.up + add_column :elections, :embeddable, :boolean, + :null => false, :default => false + add_column :elections, :authenticated, :boolean, + :null => false, :default => true + add_column :elections, :early_results, :boolean, + :null => false, :default => false + end + + def self.down + remove_column :elections, :embeddable + remove_column :elections, :authenticated + remove_column :elections, :early_results + end +end