Skip to content

Instantly share code, notes, and snippets.

@devton
Created February 9, 2015 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devton/cc430daccd330b0a4364 to your computer and use it in GitHub Desktop.
Save devton/cc430daccd330b0a4364 to your computer and use it in GitHub Desktop.
Arquivo de migração gerado pelo: rails g model NegativeExpression
# Arquivo de migração gerado pelo: rails g model NegativeExpression
class CreateNegativeExpressions < ActiveRecord::Migration
def change
create_table :negative_expressions do |t|
t.text :domains, array: true, null: false
t.text :expressions, array: true, null: false
t.timestamps null: false
end
add_index :negative_expressions, :expressions, using: 'gin'
add_index :negative_expressions, :domains, using: 'gin'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment