Sha256: 1be7141e09d800f691cd4d5e0618326415cb4542a5dbd92a3f9f0d0f8d81abfb

Contents?: true

Size: 510 Bytes

Versions: 31

Compression:

Stored size: 510 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module SQLite3
      class SchemaCreation < AbstractAdapter::SchemaCreation
        private

          def column_options(o)
            options = super
            options[:null] = false if o.primary_key
            options
          end

          def add_column_options!(sql, options)
            if options[:collation]
              sql << " COLLATE \"#{options[:collation]}\""
            end
            super
          end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
activerecord-5.0.7.2 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.7.1 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.7 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.6 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.6.rc1 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.5 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.5.rc2 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.5.rc1 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.4 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.4.rc1 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.3 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-5.0.2/lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.2 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
activerecord-5.0.2.rc1 lib/active_record/connection_adapters/sqlite3/schema_creation.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/sqlite3/schema_creation.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/sqlite3/schema_creation.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/sqlite3/schema_creation.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/sqlite3/schema_creation.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/sqlite3/schema_creation.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/connection_adapters/sqlite3/schema_creation.rb