mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #8 from robin850/fix-migrations
Fix the migration class name
This commit is contained in:
commit
cc581a6495
3 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
class ActiveStorage::CreateTables < ActiveRecord::Migration[5.1]
|
||||
class ActiveStorageCreateTables < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :active_storage_blobs do |t|
|
||||
t.string :key
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class ActiveStorage::CreateUsers < ActiveRecord::Migration[5.1]
|
||||
class ActiveStorageCreateUsers < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :name
|
||||
|
|
|
@ -2,5 +2,5 @@ require "active_storage/migration"
|
|||
require_relative "create_users_migration"
|
||||
|
||||
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
|
||||
ActiveStorage::CreateTables.migrate(:up)
|
||||
ActiveStorage::CreateUsers.migrate(:up)
|
||||
ActiveStorageCreateTables.migrate(:up)
|
||||
ActiveStorageCreateUsers.migrate(:up)
|
||||
|
|
Loading…
Reference in a new issue