Sha256: eb99c77717019f9c5691fc724a4f73d982e7b442c9ea2dd26f258701d0451ca5

Contents?: true

Size: 473 Bytes

Versions: 3

Compression:

Stored size: 473 Bytes

Contents

class CreateTabloConnectMovies < ActiveRecord::Migration
  def change
    create_table :tablo_connect_movies do |t|
      t.integer :tablo_id
      t.string :title
      t.text :description
      t.integer :release_year
      t.datetime :air_date
      t.integer :image_id
      t.integer :copy_status, default: 0

      t.timestamps null: false
    end

    add_index :tablo_connect_movies, :tablo_id, :unique => true
    add_index :tablo_connect_movies, :title
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tablo_connect-0.0.4 db/migrate/20151101164611_create_tablo_connect_movies.rb
tablo_connect-0.0.3 db/migrate/20151101164611_create_tablo_connect_movies.rb
tablo_connect-0.0.2 db/migrate/20151101164611_create_tablo_connect_movies.rb