Skip to content
Permalink
Browse files

Update migrations

  • Loading branch information
ImsirovicAjdin committed Dec 24, 2019
1 parent 2f0aa08 commit 7b770a867d9b8847dc15bdd12ce5a592760fb7e7
Showing with 11 additions and 2 deletions.
  1. +9 −0 db/migrate/20191224215938_change_movies_again.rb
  2. +2 −2 db/schema.rb
@@ -0,0 +1,9 @@
class ChangeMoviesAgain < ActiveRecord::Migration[6.0]
def up
rename_table("greatest_movies", "movies")
end

def down
rename_table("movies", "greatest_movies")
end
end
@@ -10,12 +10,12 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2019_12_24_205624) do
ActiveRecord::Schema.define(version: 2019_12_24_215938) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

create_table "greatest_movies", force: :cascade do |t|
create_table "movies", force: :cascade do |t|
t.string "title", limit: 150
t.string "plot_description", limit: 300
t.bigint "rating"

0 comments on commit 7b770a8

Please sign in to comment.
You can’t perform that action at this time.