Sha256: cbfa6028c9829a0dc1e7e190d7287159626e8ce61228d929c34546b09a77eaba

Contents?: true

Size: 369 Bytes

Versions: 157

Compression:

Stored size: 369 Bytes

Contents

class CreateSubscriptions < ActiveRecord::Migration[4.2]
  def change
    create_table :subscriptions do |t|
      t.text :title, null: false
      t.text :note
      t.references :user, index: true
      t.references :order_list, index: true
      t.datetime :deleted_at
      t.integer :subscribes_count, default: 0, null: false

      t.timestamps
    end
  end
end

Version data entries

157 entries across 157 versions & 21 rubygems

Version Path
enju_search_log-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_purchase_request-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_inventory-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_news-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_loc-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_circulation-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_event-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_nii-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_ndl-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_bookmark-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_message-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_manifestation_viewer-0.3.0.beta.2 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_manifestation_viewer-0.3.0.beta.1 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_library-0.3.0.beta.2 db/migrate/20081006090811_create_subscriptions.rb
enju_seed-0.3.0.beta.6 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
enju_biblio-0.3.0.beta.2 spec/dummy/db/migrate/20081006090811_create_subscriptions.rb