Sha256: 84e30acd92ad36fec453b979ea3d18cfcab9092f0177b283f7b8d729e72f6d74

Contents?: true

Size: 480 Bytes

Versions: 412

Compression:

Stored size: 480 Bytes

Contents

class CreateSubscriptions < ActiveRecord::Migration
  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

412 entries across 409 versions & 24 rubygems

Version Path
enju_oai-0.1.0.pre3 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_oai-0.1.0.pre2 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_oai-0.1.0.pre spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_bookmark-0.1.0.pre spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_library-0.1.0.pre db/migrate/20081006090811_create_subscriptions.rb
enju_bookmark-0.1.0 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_oai-0.0.4 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_library-0.0.2 db/migrate/20081006090811_create_subscriptions.rb
enju_bookmark-0.0.22 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_bookmark-0.0.21 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_bookmark-0.0.20 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_library-0.0.1 db/migrate/20081006090811_create_subscriptions.rb