Skip to content

Commit

Permalink
Merge pull request ilyakatz#197 from ilyakatz/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
ilyakatz authored Jul 12, 2021
2 parents 8a99cea + f30b83b commit 1db042b
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: ruby
rvm:
- 2.4.4
- 2.5.5
- 2.6.2
- 2.6
- 2.7
script: bundle exec rspec
gemfile:
- gemfiles/rails_5.1.gemfile
Expand Down
7 changes: 6 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

## 7.0.2

Remove magic comment in migration files [y-yagi](https://github.com/y-yagi)
User frozen string [jonnay](https://github.com/jonnay)
## 7.0.1
Use SchemaMigrations.migration_paths in main rake task [lewhit](https://github.com/lewhit)
Use SchemaMigration.migrations_paths in main rake task [lewhit](https://github.com/lewhit)

## 6.8.0

Expand Down
4 changes: 0 additions & 4 deletions lib/data_migrate/schema_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ def dump(connection = ActiveRecord::Base.connection, stream = STDOUT)
def dump(stream)
define_params = @version ? "version: #{@version}" : ""

if stream.respond_to?(:external_encoding) && stream.external_encoding
stream.puts "# encoding: #{stream.external_encoding.name}"
end

stream.puts "DataMigrate::Data.define(#{define_params})"

stream
Expand Down
2 changes: 1 addition & 1 deletion lib/data_migrate/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DataMigrate
VERSION = "7.0.1".freeze
VERSION = "7.0.2".freeze
end
2 changes: 2 additions & 0 deletions lib/generators/data_migration/templates/data_migration.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class <%= migration_class_name %> < <%= migration_base_class_name %>
def up
end
Expand Down
1 change: 0 additions & 1 deletion spec/db/data/partial_schema/data_schema.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# encoding: UTF-8
DataMigrate::Data.define(version: 20091231235959)
1 change: 0 additions & 1 deletion spec/db/data/partial_schema/test_data_schema.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# encoding: UTF-8
DataMigrate::Data.define(version: 20091231235959)
1 change: 0 additions & 1 deletion spec/db/data/schema/data_schema.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# encoding: UTF-8
DataMigrate::Data.define(version: 20171231235959)
1 change: 0 additions & 1 deletion spec/db/data/schema/test_data_schema.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# encoding: UTF-8
DataMigrate::Data.define(version: 20171231235959)

0 comments on commit 1db042b

Please sign in to comment.