spec/mysql/migrate/migrate_same_spec.rb in ridgepole-0.7.3.beta vs spec/mysql/migrate/migrate_same_spec.rb in ridgepole-0.7.3.beta2
- old
+ new
@@ -1,9 +1,9 @@
describe 'Ridgepole::Client#diff -> migrate' do
context 'when database and definition are same' do
- let(:dsl) {
- erbh(<<-EOS)
+ let(:dsl) do
+ erbh(<<-ERB)
create_table "clubs", <%= i cond('>= 5.1',{id: :integer}) + {unsigned: true, force: :cascade} %> do |t|
t.string "name", default: "", null: false
t.index ["name"], name: "idx_name", unique: true, <%= i cond(5.0, using: :btree) %>
end
@@ -57,11 +57,11 @@
t.string "title", limit: 50, null: false
t.date "from_date", null: false
t.date "to_date"
t.index ["emp_no"], name: "emp_no", <%= i cond(5.0, using: :btree) %>
end
- EOS
- }
+ ERB
+ end
before { restore_tables }
subject { client }
it {