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_oai-0.1.0.pre17 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.1.0.pre42 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.17.pre24 db/migrate/113_create_events.rb
enju_ndl-0.1.0.pre35 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.1.0.pre40 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.1.0.pre64 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.1.0.pre39 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.1.0.pre63 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.17.pre23 db/migrate/113_create_events.rb
enju_oai-0.1.0.pre16 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.17.pre22 db/migrate/113_create_events.rb
enju_event-0.1.17.pre21 db/migrate/113_create_events.rb
enju_oai-0.1.0.pre15 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.17.pre20 db/migrate/113_create_events.rb
enju_oai-0.1.0.pre14 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.17.pre19 db/migrate/113_create_events.rb