Skip to content

Commit 3d72300

Browse files
authored
Update migrations (#200)
* Update to latest active record migration version Syntax stayed the same * Remove active storage (No longer included with `rails new`, we're not using it) * Regenerate schema
1 parent 3703425 commit 3d72300

5 files changed

Lines changed: 5 additions & 63 deletions

db/migrate/20140707111715_create_widgets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateWidgets < ActiveRecord::Migration[5.1]
1+
class CreateWidgets < ActiveRecord::Migration[8.0]
22
def change
33
create_table :widgets do |t|
44
t.string :name

db/migrate/20220606153049_add_service_name_to_active_storage_blobs.active_storage.rb

Lines changed: 0 additions & 22 deletions
This file was deleted.

db/migrate/20220606153050_create_active_storage_variant_records.active_storage.rb

Lines changed: 0 additions & 27 deletions
This file was deleted.

db/migrate/20220606153051_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

db/schema.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.0].define(version: 2022_06_06_153051) do
13+
ActiveRecord::Schema[8.0].define(version: 2014_07_07_111715) do
1414
# These are extensions that must be enabled in order to support this database
15-
enable_extension "plpgsql"
15+
enable_extension "pg_catalog.plpgsql"
1616

1717
create_table "widgets", force: :cascade do |t|
1818
t.string "name"
1919
t.text "description"
2020
t.integer "stock"
21-
t.datetime "created_at", precision: nil, null: false
22-
t.datetime "updated_at", precision: nil, null: false
21+
t.datetime "created_at", null: false
22+
t.datetime "updated_at", null: false
2323
end
24-
2524
end

0 commit comments

Comments
 (0)