1
0
Fork 0
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:
George Claghorn 2017-07-06 23:43:52 -04:00 committed by GitHub
commit cc581a6495
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
class ActiveStorage::CreateTables < ActiveRecord::Migration[5.1] class ActiveStorageCreateTables < ActiveRecord::Migration[5.1]
def change def change
create_table :active_storage_blobs do |t| create_table :active_storage_blobs do |t|
t.string :key t.string :key

View file

@ -1,4 +1,4 @@
class ActiveStorage::CreateUsers < ActiveRecord::Migration[5.1] class ActiveStorageCreateUsers < ActiveRecord::Migration[5.1]
def change def change
create_table :users do |t| create_table :users do |t|
t.string :name t.string :name

View file

@ -2,5 +2,5 @@ require "active_storage/migration"
require_relative "create_users_migration" require_relative "create_users_migration"
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveStorage::CreateTables.migrate(:up) ActiveStorageCreateTables.migrate(:up)
ActiveStorage::CreateUsers.migrate(:up) ActiveStorageCreateUsers.migrate(:up)