APIdock / Ruby on Rails
/
Browse About
method

options_include_default?

v4.2.9 - Show latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
options_include_default?(options)
protected

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 986
        def options_include_default?(options)
          options.include?(:default) && !(options[:null] == false && options[:default].nil?)
        end

Related methods

  • Instance methods
  • add_belongs_to
  • add_column
  • add_foreign_key
  • add_index
  • add_index_options
  • add_reference
  • add_timestamps
  • assume_migrated_upto_version
  • change_column
  • change_column_default
  • change_column_null
  • change_table
  • column_exists?
  • columns
  • columns_for_distinct
  • create_join_table
  • create_table
  • data_source_exists?
  • data_sources
  • drop_join_table
  • drop_table
  • dump_schema_information
  • foreign_key_column_for
  • foreign_keys
  • index_exists?
  • index_name
  • index_name_exists?
  • initialize_schema_migrations_table
  • native_database_types
  • remove_belongs_to
  • remove_column
  • remove_columns
  • remove_foreign_key
  • remove_index
  • remove_index!
  • remove_reference
  • remove_timestamps
  • rename_column
  • rename_index
  • rename_table
  • table_alias_for
  • table_exists?
  • type_to_sql
  • update_table_definition
  • Protected methods
  • protectedadd_index_sort_order
  • protectedindex_name_for_remove
  • protectedoptions_include_default?
  • protectedquoted_columns_for_index
  • protectedrename_column_indexes
  • protectedrename_table_indexes
  • Private methods
  • privatecreate_alter_table
  • privatecreate_table_definition
  • privateforeign_key_name
  • privatevalidate_index_length!
APIdock API Documentation Browser

© 2026 APIdock