Sha256: f1643dc11b1b6da574975e364bd2911a52e9058821575e5ccf4dc7e1aaf5a975

Contents?: true

Size: 476 Bytes

Versions: 6

Compression:

Stored size: 476 Bytes

Contents

class CreateSubscriptions < ActiveRecord::Migration[4.2]
  def change
    create_table :subscriptions do |t|
      t.text :title, null: false
      t.text :note
      #t.integer :subscription_list_id, :integer
      t.integer :user_id
      t.integer :order_list_id
      t.datetime :deleted_at
      t.integer :subscribes_count, default: 0, null: false

      t.timestamps
    end
    add_index :subscriptions, :user_id
    add_index :subscriptions, :order_list_id
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
enju_subject-0.3.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_oai-0.3.0 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_subject-0.3.0 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_subject-0.3.0.rc.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_oai-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_subject-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb