adds dates to polls

This commit is contained in:
Juanjo Bazán
2016-10-20 16:14:03 +02:00
committed by kikito
parent 6e3da012e5
commit b8302b6fa8
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
class AddDatesToPolls < ActiveRecord::Migration
def change
add_column :polls, :starts_at, :datetime
add_column :polls, :ends_at, :datetime
end
end

View File

@@ -294,7 +294,9 @@ ActiveRecord::Schema.define(version: 20161102133838) do
end
create_table "polls", force: :cascade do |t|
t.string "name"
t.string "name"
t.datetime "starts_at"
t.datetime "ends_at"
end
create_table "proposal_notifications", force: :cascade do |t|