Sha256: 5dcee5a4f08c6720ee4ec048814a2885150d8e7181bbf9d378ed710bc47987d2
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
class EddyCreateTables < ActiveRecord::Migration<%= migration_version %> def self.up create_table :eddy_interchange_control_numbers do |t| t.integer :control_number, null: false t.boolean :received t.boolean :sent t.timestamps null: false end create_table :eddy_functional_group_control_numbers do |t| t.integer :control_number, null: false t.string :functional_group, null: false t.boolean :received t.boolean :sent t.timestamps null: false end create_table :eddy_transaction_set_control_numbers do |t| t.integer :control_number, null: false t.string :transaction_set, null: false t.boolean :received t.boolean :sent t.timestamps null: false end add_index :eddy_interchange_control_numbers, :control_number, unique: true add_index :eddy_functional_group_control_numbers, :control_number, unique: true add_index :eddy_transaction_set_control_numbers, :control_number, unique: true end def self.down drop_table :eddy_interchange_control_numbers drop_table :eddy_functional_group_control_numbers drop_table :eddy_transaction_set_control_numbers end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eddy-0.3.0 | lib/generators/eddy/migration/templates/migration.rb.erb |