Module: Stagehand::Schema::Statements
- Defined in:
- lib/stagehand/schema/statements.rb
Instance Method Summary collapse
-
#create_table(table_name, options = {}) ⇒ Object
Ensure that developers are aware they need to make a determination of whether stagehand should track this table or not.
Instance Method Details
#create_table(table_name, options = {}) ⇒ Object
Ensure that developers are aware they need to make a determination of whether stagehand should track this table or not
5 6 7 8 9 10 11 12 13 |
# File 'lib/stagehand/schema/statements.rb', line 5 def create_table(table_name, = {}) super return if .symbolize_keys[:stagehand] == false return if UNTRACKED_TABLES.include?(table_name) return if Database.connected_to_production? Schema.add_stagehand! :only => table_name end |