Sha256: 5c062be31ee23ac33f726d0722ad6c83a62ea3d2b000253692423e9b19d73b02

Contents?: true

Size: 555 Bytes

Versions: 116

Compression:

Stored size: 555 Bytes

Contents

class CreateEvents < ActiveRecord::Migration
  def self.up
    create_table :events do |t|
      t.integer :library_id, :null => false
      t.integer :event_category_id, :null => false
      t.string :name
      t.text :note
      t.datetime :start_at
      t.datetime :end_at
      t.boolean :all_day, :default => false, :null => false
      t.datetime :deleted_at
      t.text :display_name

      t.timestamps
    end
    add_index :events, :library_id
    add_index :events, :event_category_id
  end

  def self.down
    drop_table :events
  end
end

Version data entries

116 entries across 112 versions & 7 rubygems

Version Path
enju_library-0.2.5 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.2.5 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.2.5 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.2.4 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.4 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.2.4 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.2.3 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.3 spec/dummy/db/migrate/113_create_events.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/113_create_events.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/113_create_events.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/113_create_events.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/dummy/db/migrate/113_create_events.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/113_create_events.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/dummy/db/migrate/113_create_events.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/dummy/db/migrate/113_create_events.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/113_create_events.rb
enju_library-0.2.2 spec/dummy/db/migrate/113_create_events.rb