Class: StrongSchema::TableExtension::MigrationProxy
- Inherits:
-
Object
- Object
- StrongSchema::TableExtension::MigrationProxy
- Includes:
- Singleton
- Defined in:
- lib/strong_schema/table_extension.rb
Instance Method Summary collapse
-
#connection ⇒ Object
: () -> ActiveRecord::ConnectionAdapters::AbstractAdapter.
-
#reverting? ⇒ Boolean
: () -> false.
-
#stop!(message, header: "Custom check") ⇒ Object
: (String, ?header: String) -> void.
-
#version ⇒ Object
: () -> nil.
Instance Method Details
#connection ⇒ Object
: () -> ActiveRecord::ConnectionAdapters::AbstractAdapter
47 48 49 |
# File 'lib/strong_schema/table_extension.rb', line 47 def connection ActiveRecord::Base.connection end |
#reverting? ⇒ Boolean
: () -> false
39 40 41 |
# File 'lib/strong_schema/table_extension.rb', line 39 def reverting? false end |
#stop!(message, header: "Custom check") ⇒ Object
: (String, ?header: String) -> void
52 53 54 |
# File 'lib/strong_schema/table_extension.rb', line 52 def stop!(, header: "Custom check") raise StrongMigrations::UnsafeMigration, "\n=== #{header} #strong_migrations ===\n\n#{}\n" end |
#version ⇒ Object
: () -> nil
44 |
# File 'lib/strong_schema/table_extension.rb', line 44 def version; end |