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_biblio-0.1.2 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.1.1 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.1.1 spec/dummy/db/migrate/113_create_events.rb
enju_ndl-0.1.1 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.18 db/migrate/113_create_events.rb
enju_biblio-0.1.1 spec/dummy/db/migrate/113_create_events.rb
enju_oai-0.1.0 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.1.0 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.1.0 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.1.0 spec/dummy/db/migrate/113_create_events.rb
enju_ndl-0.1.0 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.17 db/migrate/113_create_events.rb
enju_ndl-0.1.0.pre38 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.1.0.pre45 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.1.0.pre71 spec/dummy/db/migrate/113_create_events.rb
enju_event-0.1.17.pre27 db/migrate/113_create_events.rb
enju_oai-0.1.0.pre20 spec/dummy/db/migrate/113_create_events.rb
enju_circulation-0.1.0.pre49 spec/dummy/db/migrate/113_create_events.rb
enju_library-0.1.0.pre44 spec/dummy/db/migrate/113_create_events.rb
enju_biblio-0.1.0.pre70 spec/dummy/db/migrate/113_create_events.rb