Class: ActiveRecord::ConnectionAdapters::SchemaStatements

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/rails/annotations/active_record.rb

Instance Method Summary collapse

Instance Method Details

#change_table(table_name, **options) {|| ... } ⇒ void

This method returns an undefined value.

Yield Parameters:

  • (ActiveRecord::ConnectionAdapters::Table)


16
# File 'lib/solargraph/rails/annotations/active_record.rb', line 16

def change_table(table_name, **options); end

#create_join_table(table_1, table_2, column_options: {}, **options) {|| ... } ⇒ void

This method returns an undefined value.

Parameters:

  • table_1 (String, Symbol)
  • table_2 (String, Symbol)
  • column_options (Hash) (defaults to: {})
  • options (Hash{Symbol => undefined})

Yield Parameters:

  • (ActiveRecord::ConnectionAdapters::TableDefinition)


13
# File 'lib/solargraph/rails/annotations/active_record.rb', line 13

def create_join_table(table_1, table_2, column_options: {}, **options); end

#create_table(table_name, id: nil, primary_key: nil, force: false, **options) {|| ... } ⇒ void

This method returns an undefined value.

Yield Parameters:

  • (ActiveRecord::ConnectionAdapters::TableDefinition)


6
# File 'lib/solargraph/rails/annotations/active_record.rb', line 6

def create_table(table_name, id: nil, primary_key: nil, force: false, **options); end