adds dates to polls
This commit is contained in:
6
db/migrate/20161020112156_add_dates_to_polls.rb
Normal file
6
db/migrate/20161020112156_add_dates_to_polls.rb
Normal 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
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user