Sha256: 42b0d6da467634cba9cad7439ae01185443628742f50e669bfe4ad6a51a5d83f

Contents?: true

Size: 575 Bytes

Versions: 32

Compression:

Stored size: 575 Bytes

Contents

class CreateImports < ActiveRecord::Migration
  def change
    create_table :imports do |t|
      t.integer     :status, default: 0
      t.string      :name
      t.string      :token
      t.references  :import_format, index: true
      t.string      :repeating_element, default: "Listing"
      t.string      :unique_identifier, default: "ListingKey"
      t.string      :source_url
      t.string      :source_user
      t.string      :source_pass
      t.datetime    :source_data_modified

      t.timestamps null: false
    end
    add_index :imports, :token
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
reso-0.1.4.9 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.8 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.7 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.6 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.5 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.4 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.3 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.2 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.1 lib/generators/reso/templates/create_imports.rb
reso-0.1.4.0 lib/generators/reso/templates/create_imports.rb
reso-0.1.3.1 lib/generators/reso/templates/create_imports.rb
reso-0.1.3.0 lib/generators/reso/templates/create_imports.rb