Skip to content

Commit

Permalink
Merge pull request #1705 from yahonda/longer_identifier_support_for_a…
Browse files Browse the repository at this point in the history
…dd_column

Add spec for `add_column` to support longer identifier
  • Loading branch information
yahonda authored Apr 16, 2018
2 parents 1bed3fd + 2b9d8ed commit e63142b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,15 @@ class ::TestPost < ActiveRecord::Base; end
expect(TestPost.columns_hash["body"]).not_to be_nil
end

it "should add longer column" do
skip unless @oracle12cr2_or_higher
schema_define do
add_column :test_posts, "a" * 128, :string
end
TestPost.reset_column_information
expect(TestPost.columns_hash["a" * 128]).not_to be_nil
end

it "should add lob column with non_default tablespace" do
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.default_tablespaces[:clob] = DATABASE_NON_DEFAULT_TABLESPACE
schema_define do
Expand Down

0 comments on commit e63142b

Please sign in to comment.