Skip to content

Do migrations have native data type support #507

@johnnymo87

Description

@johnnymo87

I feel like I'm misunderstanding the native data types listed in the readme. Is there a way to use these in a migration? For instance ...

    create_table :SomeTable, primary_key: :SomeTableID do |t|
      t.smalldatetime :StartDate, default: 'getdate()', null: false
      t.smalldatetime :EndDate
    end

... throws ...

undefined method `smalldatetime' for #<ActiveRecord::ConnectionAdapters::SQLServer::TableDefinition:0x007fde99ea0658>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions