adds dates to polls

This commit is contained in:
Juanjo Bazán
2016-10-20 16:14:03 +02:00
parent 0d34765247
commit 44691a0bd7
2 changed files with 10 additions and 2 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

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160928113143) do
ActiveRecord::Schema.define(version: 20161020112156) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -294,7 +294,9 @@ ActiveRecord::Schema.define(version: 20160928113143) 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|