lib/arxutils_sqlite3/cli.rb in arxutils_sqlite3-0.1.61 vs lib/arxutils_sqlite3/cli.rb in arxutils_sqlite3-0.1.63
- old
+ new
@@ -9,11 +9,11 @@
@env = env
@acrecord = acrecord
@dbconfig_path = @config.make_dbconfig_path(@dbconfig)
@db_scheme_ary = nil
- if yaml_fname && yaml_fname.strip != ''
+ if yaml_fname && yaml_fname.strip != ""
yaml_pn = Pathname.new(yaml_fname)
@db_scheme_ary = YAML.load_file(yaml_pn)
end
@mig = @config.prepare_for_migrate(@db_scheme_ary, @dbconfig_path, @dbconfig, @acrecord)
end
@@ -67,10 +67,11 @@
# DB接続
Arxutils_Sqlite3::Dbutil::Dbconnect.db_connect(@config, @dbconfig, @env)
# マイグレーション実行
- ActiveRecord::MigrationContext.new(migrate_dir, ActiveRecord::SchemaMigration).up
+ # ActiveRecord::MigrationContext.new(migrate_dir, ActiveRecord::SchemaMigration).up
+ ActiveRecord::MigrationContext.new(migrate_dir).up
end
def acr
# DB接続
connect_time = Arxutils_Sqlite3::Dbutil::Dbconnect.db_connect(@config, @dbconfig, @env)