Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add environment_variables field to V3 Apps"
This reverts commit 87c85e3.
- Loading branch information
Showing
12 changed files
with
33 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
require 'spec_helper' | ||
|
||
describe 'DB Schema' do | ||
DbConfig.connection.tables.each do |table| | ||
it "the table #{table}'s name should not be longer than 60 characters" do | ||
expect(table.length).to be <= 60 | ||
end | ||
|
||
DbConfig.connection.schema(table).each do |column| | ||
it "the column #{table}.#{column}'s name should not be longer than 60 characters" do | ||
expect(column[0].length).to be <= 60 | ||
context 'To support Oracle' do | ||
DbConfig.connection.tables.each do |table| | ||
it "the table #{table}'s name should not be longer than 30 characters" do | ||
expect(table.length).to be <= 30 | ||
end | ||
end if DbConfig.connection.supports_schema_parsing? | ||
|
||
DbConfig.connection.foreign_key_list(table).each do |fk| | ||
it "the foreign key #{table}.#{fk[:name]}'s name should not be longer than 60 characters" do | ||
expect(fk[:name].length).to be <= 60 | ||
end unless fk[:name].nil? | ||
end if DbConfig.connection.supports_foreign_key_parsing? | ||
DbConfig.connection.schema(table).each do |column| | ||
it "the column #{table}.#{column}'s name should not be longer than 30 characters" do | ||
expect(column[0].length).to be <= 30 | ||
end | ||
end if DbConfig.connection.supports_schema_parsing? | ||
|
||
DbConfig.connection.indexes(table).each do |name, index| | ||
it "the index #{table}.#{name}'s name should not be longer than 60 characters" do | ||
expect(name.length).to be <= 60 | ||
end | ||
end if DbConfig.connection.supports_index_parsing? | ||
end if DbConfig.connection.supports_table_listing? | ||
DbConfig.connection.foreign_key_list(table).each do |fk| | ||
it "the foreign key #{table}.#{fk[:name]}'s name should not be longer than 30 characters" do | ||
expect(fk[:name].length).to be <= 30 | ||
end unless fk[:name].nil? | ||
end if DbConfig.connection.supports_foreign_key_parsing? | ||
|
||
DbConfig.connection.indexes(table).each do |name, index| | ||
it "the index #{table}.#{name}'s name should not be longer than 30 characters" do | ||
expect(name.length).to be <= 30 | ||
end | ||
end if DbConfig.connection.supports_index_parsing? | ||
end if DbConfig.connection.supports_table_listing? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters